package com.sophialex.health.record.common;

import java.util.HashMap;
import java.util.Map;

import com.sophia.common.xmlbean.pojo.antenatalreview.AntenatalreviewXMLPojo;
import com.sophia.common.xmlbean.pojo.childcheckrecord.ChildCheckRecordXMLPojo;
import com.sophia.common.xmlbean.pojo.gxyfollowup.HypertensionFollowUpXMLPojo;
import com.sophia.common.xmlbean.pojo.infanthealth.InfantHealthXMLPojo;
import com.sophia.common.xmlbean.pojo.postpartum.PostpartumXMLPojo;
import com.sophia.common.xmlbean.pojo.postpartum42check.Postpartum42DayCheckXMLPojo;
import com.sophia.common.xmlbean.pojo.pregnantrecord.PregnantRecordXMLPojo;
import com.sophia.common.xmlbean.pojo.schizophrenia.SchizophreniaVisitXMLPojo;
import com.sophia.common.xmlbean.pojo.tnbfollowup.GlycuresisFollowUpXMLPojo;
import com.sophia.common.xmlbean.pojo.tuberculosis.TuberculosisVisitXMLPojo;
import com.sophia.common.xmlbean.pojo.yearcheck.HealthExaminationXMLPojo;
import com.sophialex.health.common.platform.SuperContext;
import com.sophialex.health.record.views.baseinfo.YearCheckView;
import com.sophialex.health.record.views.children.ChildRenRegisterView;
import com.sophialex.health.record.views.children.ChildrenCheckView;
import com.sophialex.health.record.views.children.InfantHealthView;
import com.sophialex.health.record.views.pregnant.AntenatalreView;
import com.sophialex.health.record.views.pregnant.Postpartum42DayCheckView;
import com.sophialex.health.record.views.pregnant.PostpartumView;
import com.sophialex.health.record.views.pregnant.PregnantRecordView;
import com.sophialex.health.record.views.visits.DiabetesVisitsView;
import com.sophialex.health.record.views.visits.HypertensionVisitView;
import com.sophialex.health.record.views.visits.SchizophreniaVisitsView;
import com.sophialex.health.record.views.visits.TuberculosisVisits1View;

/**
 * 
 * <p>Title:Health</p>
 * <p>SOAPServiceDispath</p>
 * 
 * Alex Apr 22, 2011 6:48:28 PM create
 * @author <a href='wanghao924@126.com'>Alex</a>
 * QQ: 873987060;
 * @version 1.0
 */
public class SOAPServiceDispath {
	/** 注册MAP key:BUS_TYPE,业务类别 value：分发路径 */
	public static Map<Long, String> serviceMap = new HashMap<Long, String>();
	
	/** 注册MAP key:BUS_TYPE,视图类 class */
	public static Map<Long, Class> serviceClassMap = new HashMap<Long, Class>();
	
	/** 注册MAP key:BUS_TYPE,业务类别 value：分发路径 台帐打印用 */
	public static Map<Long, String> serviceMapAccount = new HashMap<Long, String>();
	
	static{
		serviceMap.put(Constants.COPD_SUFFERER_FOLLOWUP_SURVEY,ChildRenRegisterView.ID);  /**儿童档案登记*/
		serviceMap.put(Constants.YEBJTJJL, InfantHealthView.ID); /**婴儿期保健体检记录*/
		serviceMap.put(Constants.ONETO3ERTONG,ChildrenCheckView.ID);  /**1-3岁儿童体检记录*/
//		serviceMap.put(Constants.YEYSQK, "");  /**婴儿期饮食情况记录*/
		
		serviceMap.put(Constants.YFDADJ,PregnantRecordView.ID);  /**孕妇档案登记*/
		serviceMap.put(Constants.CQJC,AntenatalreView.ID);  /**产前检查*/
		serviceMap.put(Constants.CHFS,PostpartumView.ID);  /**产后访视*/
		serviceMap.put(Constants.CH42CHECK,Postpartum42DayCheckView.ID);  /**产后42天检查*/
		
		serviceMap.put(Constants.JKTJ, YearCheckView.ID);  /**健康体检*/
		
		serviceMap.put(Constants.GXYSF, HypertensionVisitView.ID);  /**高血压随访记录*/
		serviceMap.put(Constants.TNBSF, DiabetesVisitsView.ID);  /**糖尿病随访记录*/
		serviceMap.put(Constants.JHBSF, TuberculosisVisits1View.ID);  /**结核病随访记录*/
		serviceMap.put(Constants.JSBSF, SchizophreniaVisitsView.ID);  /**精神病随访记录*/
	    
		/**  =================================================================================================**/
		
		
		serviceClassMap.put(Constants.COPD_SUFFERER_FOLLOWUP_SURVEY,ChildCheckRecordXMLPojo.class);  /**儿童档案登记*/
		serviceClassMap.put(Constants.YEBJTJJL, InfantHealthXMLPojo.class); /**婴儿期保健体检记录*/
		serviceClassMap.put(Constants.ONETO3ERTONG,ChildCheckRecordXMLPojo.class);  /**1-3岁儿童体检记录*/
		
		serviceClassMap.put(Constants.YFDADJ,PregnantRecordXMLPojo.class);  /**孕妇档案登记*/
		serviceClassMap.put(Constants.CQJC,AntenatalreviewXMLPojo.class);  /**产前检查*/
		serviceClassMap.put(Constants.CHFS,PostpartumXMLPojo.class);  /**产后访视*/
		serviceClassMap.put(Constants.CH42CHECK,Postpartum42DayCheckXMLPojo.class);  /**产后42天检查*/
		
		serviceClassMap.put(Constants.JKTJ, HealthExaminationXMLPojo.class);  /**健康体检*/
		
		serviceClassMap.put(Constants.GXYSF, HypertensionFollowUpXMLPojo.class);  /**高血压随访记录*/
		serviceClassMap.put(Constants.TNBSF, GlycuresisFollowUpXMLPojo.class);  /**糖尿病随访记录*/
		serviceClassMap.put(Constants.JHBSF, TuberculosisVisitXMLPojo.class);  /**结核病随访记录*/
		serviceClassMap.put(Constants.JSBSF, SchizophreniaVisitXMLPojo.class);  /**精神病随访记录*/
	
		
		
		
		/** ===================================================================================================**/
		
		serviceMapAccount.put(Constants.COPD_SUFFERER_FOLLOWUP_SURVEY, "");  /**儿童档案登记*/
		serviceMapAccount.put(Constants.YEBJTJJL, ""); /**婴儿期保健体检记录*/
		serviceMapAccount.put(Constants.ONETO3ERTONG, "");  /**1-3岁儿童体检记录*/
//		serviceMapAccount.put(Constants.YEYSQK, "");  /**婴儿期饮食情况记录*/
		
		serviceMapAccount.put(Constants.YFDADJ, "");  /**孕妇档案登记*/
		serviceMapAccount.put(Constants.CQJC, "");  /**产前检查*/
		serviceMapAccount.put(Constants.CHFS, "");  /**产后访视*/
		serviceMapAccount.put(Constants.CH42CHECK, "");  /**产后42天检查*/
		
		serviceMapAccount.put(Constants.JKTJ, "");  /**健康体检*/
		
		serviceMapAccount.put(Constants.GXYSF, "");  /**高血压随访记录*/
		serviceMapAccount.put(Constants.TNBSF, "");  /**糖尿病随访记录*/
		serviceMapAccount.put(Constants.JHBSF, "");  /**结核病随访记录*/
		serviceMapAccount.put(Constants.JSBSF, "");  /**精神病随访记录*/
		
		serviceMapAccount.put(Constants.GRJKDA_BUSSTYPE, SuperContext.Remote_Url+"/printAccountWebAction.do?method=printAccount&busType=201101&personId=");  /**个人健康档案封面*/
		serviceMapAccount.put(Constants.JKK,SuperContext.Remote_Url+"/printAccountWebAction.do?method=printAccount&busType=20110101&personId=");  /**居民健康档案信息卡*/
		serviceMapAccount.put(Constants.ISSUE,SuperContext.Remote_Url+"/printAccountWebAction.do?method=printAccount&busType=20110102&personId=");  /**健康问题目录*/
		
	}
}

